package com.marvels.approve.credit.dao;

import com.marvels.approve.credit.dto.McamAttachmentInfoDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface McamAttachmentInfoDao {
	/**
	 * 检验是否已经上传征信报告
	 * @param dto
	 * @return
	 */
	public int getCheckAttachmentInfo(McamAttachmentInfoDTO dto);
	/**
	 * 查询贷款用户的影像资料
	 * @param loanId
	 * @return
	 */
	public List<McamAttachmentInfoDTO> getUserMediaByLoanId(@Param("loanId") String loanId);

	
	public int insertItem(McamAttachmentInfoDTO dto);
	
	/**
	 * 获取用户证件影像资料附件
	 * @param loanId
	 * @return
	 */
	public List<McamAttachmentInfoDTO> getUserImageByLoanId(@Param("loanId") String loanId);
	
	
	/**条件查询影像文件
	 * @param dto
	 * @return
	 */
	public List<McamAttachmentInfoDTO> selectMcamAttachmentInfo(McamAttachmentInfoDTO dto);
	
	/**
	 * 删除附件
	 * @param atmtType
	 * @param loanId
	 * @return
	 */
	public int deleteAttachmentInfoByAtmtType(McamAttachmentInfoDTO attachmentInfo);
}